﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebRole1
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            SearchButton.Attributes.Add("onmouseover", "this.style.cursor = 'pointer';"
                                                     + "this.style.background = '#3a5b8d';");
            SearchButton.Attributes.Add("onmouseout", "this.style.cursor = 'default';"
                                                     + "this.style.background = '#4b6c9e';");
        }

        protected void Search(object sender, EventArgs e)
        {
            String text = SearchText.Text;
            if (text.Length != 0)
                Response.Redirect("search.aspx?q=" + text);
        }

        protected void SearchText_TextChanged(object sender, EventArgs e)
        {

        }
    }
}
